hip.graphics.g2d.renderer2d

Undocumented in source.

Public Imports

hip.api.graphics.color
public import hip.api.graphics.color;
Undocumented in source.
hip.graphics.g2d.textrenderer
public import hip.graphics.g2d.textrenderer;
Undocumented in source.
hip.api.renderer.viewport
public import hip.api.renderer.viewport;
Undocumented in source.
hip.api.data.font
public import hip.api.data.font;
Undocumented in source.
exportd
public import exportd;
Undocumented in source but is binding to an external library. You might be able to learn more by searching the web for its name.

Members

Classes

Array2D_GC (from hip.util.data_structures)
class Array2D_GC(T) via public import hip.util.data_structures : Array2D, Array2D_GC;
Undocumented in source but is binding to an external library. You might be able to learn more by searching the web for its name.

Functions

cropSpritesheet
Array2D_GC!IHipTextureRegion cropSpritesheet(IHipTexture t, uint frameWidth, uint frameHeight, uint width, uint height, uint offsetX, uint offsetY, uint offsetXPerFrame, uint offsetYPerFrame)
Undocumented in source. Be warned that the author may not have intended to support it.
cropSpritesheetRowsAndColumns
Array2D_GC!IHipTextureRegion cropSpritesheetRowsAndColumns(IHipTexture t, uint rows, uint columns)
Undocumented in source. Be warned that the author may not have intended to support it.
drawEllipse
void drawEllipse(int x, int y, int radiusW, int radiusH, int degrees, HipColor color, int precision)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLine
void drawLine(int x1, int y1, int x2, int y2, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawMap
void drawMap(IHipTilemap map)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPixel
void drawPixel(int x, int y, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawQuadraticBezierLine
void drawQuadraticBezierLine(int x0, int y0, int x1, int y1, int x2, int y2, int precision, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(int x, int y, int w, int h, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRegion
void drawRegion(IHipTextureRegion reg, int x, int y, int z, HipColor color, float scaleX, float scaleY, float rotation)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(IHipTexture texture, ubyte[] vertices)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, int x, int y, HipColor color, HipTextAlign alignH, HipTextAlign alignV, int boundsWidth, int boundsHeight, bool wordWrap)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTextVertices
void drawTextVertices(void[] vertices, IHipFont font)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTexture
void drawTexture(IHipTexture texture, int x, int y, int z, HipColor color, float scaleX, float scaleY, float rotation)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTriangle
void drawTriangle(int x1, int y1, int x2, int y2, int x3, int y3, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
fillEllipse
void fillEllipse(int x, int y, int radiusW, int radiusH, int degrees, HipColor color, int precision)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRectangle
void fillRectangle(int x, int y, int w, int h, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRoundRect
void fillRoundRect(int x, int y, int w, int h, int radius, HipColor color, int precision)
Undocumented in source. Be warned that the author may not have intended to support it.
fillTriangle
void fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3, HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
finishRender2D
void finishRender2D()
Undocumented in source. Be warned that the author may not have intended to support it.
getCurrentViewport
Viewport getCurrentViewport()
Undocumented in source. Be warned that the author may not have intended to support it.
getWindowSize
int[2] getWindowSize()
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize(HipInterpreterEntry entry, bool shouldAutoUpdateCameraAndViewport)
Undocumented in source. Be warned that the author may not have intended to support it.
manageBatchChange
void manageBatchChange(IHipBatch newBatch)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeRenderer2D
void resizeRenderer2D(uint width, uint height)

This resizes both the 2D renderer viewport and its Orthographic Camera, maintaining always the correct aspect ratio

setCameraSize
void setCameraSize(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.
setFont
void setFont(IHipFont font)
Undocumented in source. Be warned that the author may not have intended to support it.
setFontDeferred
void setFontDeferred(IHipAssetLoadTask task)
Undocumented in source. Be warned that the author may not have intended to support it.
setGeometryColor
void setGeometryColor(HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
setRendererColorMask
void setRendererColorMask(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source. Be warned that the author may not have intended to support it.
setRendererErrorCheckingEnabled
void setRendererErrorCheckingEnabled(bool enable)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilOperation
void setStencilOperation(HipStencilOperation stencilFail, HipStencilOperation depthFail, HipStencilOperation stencilAndDephPass)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilTestingEnabled
void setStencilTestingEnabled(bool bEnable)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilTestingFunction
void setStencilTestingFunction(HipStencilTestingFunction passFunc, uint reference, uint mask)
Undocumented in source. Be warned that the author may not have intended to support it.
setStencilTestingMask
void setStencilTestingMask(uint mask)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextColor
void setTextColor(HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
setViewport
void setViewport(Viewport v)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowSize
void setWindowSize(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

IHipAssetLoadTask (from hip.api.data.commons)
interface IHipAssetLoadTask via public import hip.api.data.commons : IHipAssetLoadTask;

IHipAssetLoadTask is the base return type from any asset you want to HipAssetManager.load{X}. The loading, unless otherwise stated, is asynchronous. For simple games, most of the time you won't need to directly used LoadTask as currently the engine loads all the assets at startup to make it easier to prototype a game without needing to think about those tasks.

Structs

Array2D (from hip.util.data_structures)
struct Array2D(T) via public import hip.util.data_structures : Array2D, Array2D_GC;

By using Array2D instead of T[][], only one array instance is created, not "n" arrays. So it is a lot faster when you use that instead of array of arrays.

Meta